package utils.enums;

public enum BankIdTypeEnum {
	SFZ("1","身份证"),HKB("2","户口本"),JGZ("3","军官证"),WJZ("4","武警证"),
	SBZ("5","士兵证"),WZGBZ("6","文职干部证"),ZGHZ("j","中国护照"),XGTXZ("m","香港通行证"),
	AMTXZ("n","澳门通行证"),TWTXZ("P","台湾通行证或旅行证件"),
	ZZJGDM("A","组织机构代码"),YYZZ("B","营业执照"),SHXYDM("C","社会信用代码");
	private String key; 
	private String value; 
	
	private BankIdTypeEnum(String type, String desc) { 
		key = type;
		value = desc;
	}

	public String getKey() {
		return key;
	}
	public String getValue() {
		return value;
	}

	public static BankIdTypeEnum getInstance(String s) {
		BankIdTypeEnum[] allStatus = BankIdTypeEnum.values();
		for (BankIdTypeEnum ws : allStatus) {
			if (ws.getKey().equalsIgnoreCase(s)) {
				return ws;
			}
		}
		throw new IllegalArgumentException("值非法，没有符合课程状态的枚举对象");
	} 
}
